package com.dingreading.cloud.soms.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2024-09-13
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("store_menu")
public class StoreMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    private String addStaffName;

    private String addStaffUid;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;


    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    private String component;

    private String icon;

    private Boolean isMenu;

    private Boolean isParentMenu;

    private String lastStaffName;

    private String lastStaffUid;

    private String name;

    private String nodes;

    private Integer orderNum;

    private Long parentId;

    private String path;

    private Integer selfStatus;

    private String title;

    /**
     * 门店合作类型
     */
    private String cooperationType;

    /**
     * 门店运营类型
     */
    private String operationType;

    /**
     * 状态 1.启用 0.禁用
     */
    private Integer enabled;

}
